package cn.xgl6.springcloud.user.service.impl;

import cn.xgl6.springcloud.domain.User;
import cn.xgl6.springcloud.user.mapper.UserMapper;
import cn.xgl6.springcloud.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xgl
 * @create 2020-05-14 15:00
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User getUserById(Integer id) {
        User user = new User();
        user.setUid(id);
        return userMapper.selectOne(user);
    }
}
